package com.ruoyi.constant.v3;

/**
 * 任务级别
 * @author liuliya
 */
public enum RwjbV3Enum {

    SHENGJI(1, "省级"),
    SHIJI(2, "市级"),
    XIANJI(3, "县级");


    private Integer code;
    private String desc;

    RwjbV3Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwjbV3Enum value : RwjbV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
